-
Notifications
You must be signed in to change notification settings - Fork 95
Add option to enable GxITs in planemo serve #1568
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
Here it is. Thanks @bernt-matthias |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working this out. I would make this the default with an option to disable interactive tools, planemo is for development, I don't think there's any harm in enabling ITs by default. However I would attempt binding a random gxit port, get_free_port in planemo.network_util can help you there.
planemo/galaxy/config.py
Outdated
| properties.update( | ||
| dict( | ||
| interactivetools_enable="True", | ||
| interactivetools_map="database/interactivetools_map.sqlite", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| interactivetools_map="database/interactivetools_map.sqlite", |
i wouldn't specify default values
planemo/galaxy/config.py
Outdated
| if kwds.get("enable_gxits", True): | ||
| properties.update( | ||
| dict( | ||
| interactivetools_enable="True", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| interactivetools_enable="True", | |
| interactivetools_enable="true", |
planemo/galaxy/config.py
Outdated
| interactivetools_enable="True", | ||
| interactivetools_map="database/interactivetools_map.sqlite", | ||
| galaxy_infrastructure_url="http://localhost:8080", | ||
| interactivetools_upstream_proxy="False", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| interactivetools_upstream_proxy="False", | |
| interactivetools_upstream_proxy="false", |
planemo/galaxy/config.py
Outdated
| dict( | ||
| interactivetools_enable="True", | ||
| interactivetools_map="database/interactivetools_map.sqlite", | ||
| galaxy_infrastructure_url="http://localhost:8080", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You'll need to template this with the actual port
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
used the {template_args['port']}
planemo/galaxy/config.py
Outdated
| interactivetools_map="database/interactivetools_map.sqlite", | ||
| galaxy_infrastructure_url="http://localhost:8080", | ||
| interactivetools_upstream_proxy="False", | ||
| interactivetools_proxy_host="localhost:4002", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use get_free_port to find a random port on the host
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I used and tested locally with get_free_port and it works!
It is implemented as an option for the
servecommand. It can also be enabled by default if it is fine.